home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-03-20 | 8.8 KB | 540 lines | [TEXT/CWIE] |
- /*------------------------------------------------------------------------------
- File: ProcDoggie.r
-
- Contains: Resource definitions for the ProcDoggie application.
-
- Written by: Forrest Tanaka
-
- Copyright: © 1988-1997 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- You may incorporate this sample code into your applications without
- restriction, though the sample code has been provided "AS IS" and the
- responsibility for its operation is 100% yours. However, what you are
- not permitted to do is to redistribute the source as "DSC Sample Code"
- after having made changes. If you're going to re-distribute the source,
- we require that you make it clear in the source that the code was
- descended from Apple Sample Code, but that you've made changes.
- *------------------------------------------------------------------------------
- *
- * For the moment, the resource definitions are actually inside the ResEdit
- * document called ProcDoggie.rsrc. This project simply includes the resources
- * in that file
- *
- * That's true for all except 'DITL' ID=129, which is defined in a very
- * weird way using a custom template. This file defines that template
- * and the resource using it. For details about why it's done this way,
- * see the comment for InstallDialogItems in UDialogUtils.p. I would just
- * like to point out that it's not my fault -- Quinn 7 Mar 1997
- *
- *----------------------------------------------------------------------------*/
-
- #include "SysTypes.r"
- #include "Types.r"
-
- type 'DITL' {
- integer = $$CountOf(DITLarray) - 1;
- wide array DITLarray {
- byte; /* Font index */
- byte textPlain=0,textBold=1,textItalic=2,textUnderline=4,textOutline=8,textShadow=16,textCondense=32,textExtend=64; /* Text item style */
- byte; /* Font size */
- byte justLeft=-2,justRight=-1,justDefault=0,justCenter=1; /* Justification */
- rect; /* Item bounds */
- switch {
-
- case HelpItem: /* Help Mgr type item */
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 1; /* this is a new type = 1 */
-
- switch {
- case HMScanhdlg:
- byte = 4; /* sizeola */
- key int = 1; /* key value */
- integer; /* resource ID */
-
- case HMScanhrct:
- byte = 4; /* sizeola */
- key int = 2; /* key value */
- integer; /* resource ID */
-
- case HMScanAppendhdlg:
- byte = 6; /* sizeola */
- key int = 8; /* key value */
- integer; /* resource ID */
- integer; /* offset (zero based) */
- };
- case Button:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 4;
- pstring; /* Title */
-
- case CheckBox:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 5;
- pstring; /* Title */
-
- case RadioButton:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 6;
- pstring; /* Title */
-
- case Control:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 7;
- byte = 2;
- integer; /* 'CTRL' ID */
-
- case StaticText:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 8;
- pstring; /* Text */
-
- case EditText:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 16;
- pstring; /* Text */
-
- case Icon:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 32;
- byte = 2;
- integer; /* 'ICON' ID */
-
- case Picture:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 64;
- byte = 2;
- integer; /* 'PICT' ID */
-
- case UserItem:
- boolean enabled,disabled; /* Enable flag */
- key bitstring[7] = 0;
- byte = 0;
- };
- align word;
- };
- };
-
- resource 'DITL' (129, purgeable) {
- { /* array DITLarray: 36 elements */
- /* [1] */
- 0,
- 0,
- 0,
- 0,
- {10, 10, 42, 42},
- UserItem {
- disabled
- },
- /* [2] */
- 0,
- 0,
- 0,
- 0,
- {10, 46, 30, 174},
- StaticText {
- disabled,
- "Process Name"
- },
- /* [3] */
- 1,
- textBold,
- 9,
- justDefault,
- {32, 46, 46, 144},
- StaticText {
- disabled,
- "Application"
- },
- /* [4] */
- 1,
- textBold,
- 9,
- justDefault,
- {19, 206, 33, 286},
- StaticText {
- disabled,
- "Total Size:"
- },
- /* [5] */
- 1,
- textBold,
- 9,
- justDefault,
- {32, 206, 46, 286},
- StaticText {
- disabled,
- "Free Memory:"
- },
- /* [6] */
- 1,
- textPlain,
- 9,
- justRight,
- {19, 285, 33, 325},
- StaticText {
- disabled,
- ""
- },
- /* [7] */
- 1,
- textPlain,
- 9,
- justRight,
- {32, 285, 46, 325},
- StaticText {
- disabled,
- ""
- },
- /* [8] */
- 0,
- 0,
- 0,
- 0,
- {10, 340, 42, 372},
- UserItem {
- disabled
- },
- /* [9] */
- 0,
- 0,
- 0,
- 0,
- {52, 10, 52, 372},
- UserItem {
- disabled
- },
- /* [10] */
- 1,
- textBold,
- 9,
- justDefault,
- {60, 10, 74, 62},
- StaticText {
- disabled,
- "Type:"
- },
- /* [11] */
- 1,
- textBold,
- 9,
- justDefault,
- {73, 10, 87, 62},
- StaticText {
- disabled,
- "Creator:"
- },
- /* [12] */
- 2,
- textPlain,
- 9,
- justDefault,
- {61, 61, 75, 136},
- StaticText {
- disabled,
- "TYPE"
- },
- /* [13] */
- 2,
- textPlain,
- 9,
- justDefault,
- {74, 61, 88, 136},
- StaticText {
- disabled,
- "CREA"
- },
- /* [14] */
- 0,
- 0,
- 0,
- 0,
- {92, 10, 92, 372},
- UserItem {
- disabled
- },
- /* [15] */
- 1,
- textPlain,
- 9,
- justDefault,
- {105, 48, 119, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [16] */
- 1,
- textPlain,
- 9,
- justDefault,
- {118, 48, 132, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [17] */
- 1,
- textPlain,
- 9,
- justDefault,
- {131, 48, 145, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [18] */
- 1,
- textPlain,
- 9,
- justDefault,
- {144, 48, 158, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [19] */
- 1,
- textPlain,
- 9,
- justDefault,
- {157, 48, 171, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [20] */
- 1,
- textPlain,
- 9,
- justDefault,
- {170, 48, 184, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [21] */
- 1,
- textPlain,
- 9,
- justDefault,
- {183, 48, 197, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [22] */
- 1,
- textPlain,
- 9,
- justDefault,
- {196, 48, 210, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [23] */
- 1,
- textPlain,
- 9,
- justDefault,
- {209, 48, 223, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [24] */
- 1,
- textPlain,
- 9,
- justDefault,
- {222, 48, 236, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [25] */
- 1,
- textPlain,
- 9,
- justDefault,
- {235, 48, 249, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [26] */
- 1,
- textPlain,
- 9,
- justDefault,
- {248, 48, 262, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [27] */
- 1,
- textPlain,
- 9,
- justDefault,
- {261, 48, 275, 62},
- StaticText {
- disabled,
- "√"
- },
- /* [28] */
- 1,
- textBold,
- 9,
- justDefault,
- {105, 61, 119, 341},
- StaticText {
- disabled,
- "Accepts suspend/resume events"
- },
- /* [29] */
- 1,
- textBold,
- 9,
- justDefault,
- {118, 61, 132, 341},
- StaticText {
- disabled,
- "Handles window activations on major switches"
- },
- /* [30] */
- 1,
- textBold,
- 9,
- justDefault,
- {131, 61, 145, 341},
- StaticText {
- disabled,
- "Reacts to mouse clicks that cause major "
- "switches"
- },
- /* [31] */
- 1,
- textBold,
- 9,
- justDefault,
- {144, 61, 158, 341},
- StaticText {
- disabled,
- "Accepts Application-Died events"
- },
- /* [32] */
- 1,
- textBold,
- 9,
- justDefault,
- {157, 61, 171, 341},
- StaticText {
- disabled,
- "Stationery-aware"
- },
- /* [33] */
- 1,
- textBold,
- 9,
- justDefault,
- {170, 61, 184, 341},
- StaticText {
- disabled,
- "Can work in background"
- },
- /* [34] */
- 1,
- textBold,
- 9,
- justDefault,
- {183, 61, 197, 341},
- StaticText {
- disabled,
- "Only works in background"
- },
- /* [35] */
- 1,
- textBold,
- 9,
- justDefault,
- {196, 61, 210, 341},
- StaticText {
- disabled,
- "High-level event aware"
- },
- /* [36] */
- 1,
- textBold,
- 9,
- justDefault,
- {209, 61, 223, 341},
- StaticText {
- disabled,
- "Accepts remote high-level events"
- },
- /* [37] */
- 1,
- textBold,
- 9,
- justDefault,
- {222, 61, 236, 341},
- StaticText {
- disabled,
- "Allows multi-user launches"
- },
- /* [38] */
- 1,
- textBold,
- 9,
- justDefault,
- {235, 61, 249, 341},
- StaticText {
- disabled,
- "32-bit clean"
- },
- /* [39] */
- 1,
- textBold,
- 9,
- justDefault,
- {248, 61, 262, 341},
- StaticText {
- disabled,
- "Use TextEdit Services"
- },
- /* [40] */
- 1,
- textBold,
- 9,
- justDefault,
- {261, 61, 275, 341},
- StaticText {
- disabled,
- "Display Manager Aware"
- },
- /* [41] */
- 1,
- textPlain,
- 9,
- justLeft,
- {19, 325, 33, 335},
- StaticText {
- disabled,
- "K"
- },
- /* [42] */
- 1,
- textPlain,
- 9,
- justLeft,
- {32, 325, 46, 335},
- StaticText {
- disabled,
- "K"
- }
- }
- };
-